package rursu.business.pojo;

import java.util.List;

import android.graphics.Bitmap;

public class Movie {

	private int score;
	private int popularity;
	private boolean translated;
	private boolean adult;
	private String language;
	private String original_name;
	private String name;
	private String alternative_name;
	private String type;
	private int id;
	private String imdbId;
	private String url;
	private int votes;
	private float rating;
	private String certification;
	private String overview;
	private String released;
	private List<MovieImage> images;
	private int version;
	private String lastModified;
	private Bitmap poster;
	
	public Bitmap getPoster() {
		return poster;
	}
	public void setPoster(Bitmap poster) {
		this.poster = poster;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public int getPopularity() {
		return popularity;
	}
	public void setPopularity(int popularity) {
		this.popularity = popularity;
	}
	public boolean isTranslated() {
		return translated;
	}
	public void setTranslated(boolean translated) {
		this.translated = translated;
	}
	public boolean isAdult() {
		return adult;
	}
	public void setAdult(boolean adult) {
		this.adult = adult;
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public String getOriginal_name() {
		return original_name;
	}
	public void setOriginal_name(String original_name) {
		this.original_name = original_name;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAlternative_name() {
		return alternative_name;
	}
	public void setAlternative_name(String alternative_name) {
		this.alternative_name = alternative_name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getImdbId() {
		return imdbId;
	}
	public void setImdbId(String imdbId) {
		this.imdbId = imdbId;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getVotes() {
		return votes;
	}
	public void setVotes(int votes) {
		this.votes = votes;
	}
	public float getRating() {
		return rating;
	}
	public void setRating(float rating) {
		this.rating = rating;
	}
	public String getCertification() {
		return certification;
	}
	public void setCertification(String certification) {
		this.certification = certification;
	}
	public String getOverview() {
		return overview;
	}
	public void setOverview(String overview) {
		this.overview = overview;
	}
	public String getReleased() {
		return released;
	}
	public void setReleased(String released) {
		this.released = released;
	}
	public List<MovieImage> getImages() {
		return images;
	}
	public void setImages(List<MovieImage> images) {
		this.images = images;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public String getLastModified() {
		return lastModified;
	}
	public void setLastModified(String lastModified) {
		this.lastModified = lastModified;
	}
	

	public Movie copy() {
		Movie newMovie = new Movie();
		
		newMovie.setAdult(this.isAdult());
		newMovie.setAlternative_name(this.getAlternative_name());
		newMovie.setCertification(this.getCertification());
		newMovie.setId(this.id);
		newMovie.setImages(this.getImages());
		newMovie.setImdbId(this.getImdbId());
		newMovie.setLanguage(this.getLanguage());
		newMovie.setLastModified(this.getLastModified());
		newMovie.setName(this.getName());
		newMovie.setOriginal_name(this.getOriginal_name());
		newMovie.setOverview(this.getOverview());
		newMovie.setPopularity(this.getPopularity());
		newMovie.setRating(this.getRating());
		newMovie.setReleased(this.getReleased());
		newMovie.setScore(this.getScore());
		newMovie.setTranslated(this.isTranslated());
		newMovie.setType(this.getType());
		newMovie.setUrl(this.getUrl());
		newMovie.setVersion(this.getVersion());
		newMovie.setVotes(this.getVotes());
		
		return newMovie;
	}
	
	public boolean equals(Movie anotherMovie) {
		return this.getId() == anotherMovie.getId();
	}
	
}
